package org.example.config;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

/**
 * @author 李国树
 * @version 1.0
 * @Desc
 * @date 2023/12/15 16:05
 */
public class AlipayConts {
    /**
     * 支付宝网关
     */
    public static final String ALIPAY_GATEWAY = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
    /**
     * APPID
     */
    public static final String ALIPAY_APPID = "9021000133689739";


    /**
     * 我的私钥
     */
    public static final String MY_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDCdoVCfL4i1MoyFHsjg71b8e39jR2hH2BNaqK3FG1A4uwSrORQZ3DZ86FZmRlcocjXWFNthawK6eUrjdReY6ff+z8/JRdzbr4JNPre1bqxG8qrmGAdE8pbqicvTf++rpuZovTQdPXDpaIW3rITI/GBq04R8oP2F8oVFpVIKUmgs28UZcjf6nIRmZuK9xcllW+9Kd9dUTbz3IKzbc8mHOlqBIZGFsaM1L52kXlmnqcUQ5exlIaA8wpEpqUhezYgQyQqPat25CRdbB50nFZnrgXXitBToPOC21lc2UPIumEiJ6BSuCmRRZBxjU94d9Yn3jZ0J7DaH6Ubl1c6EyaFyaAjAgMBAAECggEAUwCNrqxZ57oVt7yANs9zUrx3zaKfA/fFfiXG4Agq/egdxXbgWOVeCNlxhDHR3nT7qdb8fSHyJhJhi+6Ut9knfXXbMBOf59hb6sgfUF+/uPrYzddTJvYciHWfFhTf1T7oEXK5tgRGJkUbY1GYhozv913sC8MMykyrJ8ck3tEoqRtOSXAbcYap+EWMfFZTxuIcbZ395gd7C8ahdKE9djIRcCyS84SaRI2RZh4A0EiNqjGDszEHMdtiqpcXAXZttDl1qkBKhTJZj1QK6AcNwQMEeg7JX1zEplRcnpL6vxI4WllMnc/Sryo8k88U3sHmcFr7XuQYbj6pNvp0Tkqs6o40MQKBgQD0dFB44fRV5m6DTcT6gXWQhRnTk55LBCyesvw5pmquFTSnaFyyH00H+1NFOhGnS8kf/8m9slbMOjOLC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VE289yCs23PJhzpagSGRhbGjNS+dpF5Zp6nFEOXsZSGgPMKRKalIXs2IEMkKj2rduQkXWwedJxWZ64F14rQU6DzgttZXNlDyLphIiegUrgpkUWQcY1PeHfWJ942dCew2h+lG5dXOhMmhcmgIwIDAQAB";
    /**
     * ;
     * 参数请求格式
     */
    public static final String FORMATE = "json";


    /**
     * 编码格式
     */
    public static final String CHARSET = "utf-8";

    /**
     * 支付宝公钥
     */
    public static final String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiRWGbi4FfJk3HIR8oKyUiNgSPUanD1aHh5aIypqOdvKW4Xs8RnJ0vkqFmmbYlmj/DxiNWEhDpzaEaEjPx/7wTwaH6ppGJ+Ys9+1Q20F480LnAoT8gBdaEzJKrVuUlkQAPf+6Lagwn0eBJcIbbbSjIGhfaJ5bT1Vc1kqwpmzkrlraghLqob6l3SxMvhLoK2J5UAp3qhre5YqQ1b4ucD30R6Lf+npXB1V5kCuyB+M3+jZkqlU387HF0gIMAhXmlCI+Ngj6tUHWVuUYhj6RkiPiQKofUds1XxGs2Z42iJsMamvpXuc70V6GbAL+gZwDqUh6iCCJ/Is4qaurLuTUN+JqMQIDAQAB";


    /**
     * 签名算法
     */
    public static final String SIGN_TYPE = "RSA2";

    /**
     * 同步回调地址
     */
    public static final String RETURN_URL = "http://localhost:8080/list";

    /**
     * 异步回调地址
     */
    public static final String NOTIFY_URL = "http://jze3mq.natappfree.cc/pay/callback";


    /**
     * 接口调用公共封装
     */
    public static final AlipayClient ALIPAY_CLIENT = new DefaultAlipayClient(AlipayConts.ALIPAY_GATEWAY, AlipayConts.ALIPAY_APPID, AlipayConts.MY_PRIVATE_KEY, AlipayConts.FORMATE, AlipayConts.CHARSET, AlipayConts.ALIPAY_PUBLIC_KEY, AlipayConts.SIGN_TYPE);


    /**
     * 交易成功的状态
     */
    public static final String TRADE_SUCCESS = "TRADE_SUCCESS";
    /**
     * 交易关闭的状态
     */
    public static final String TRADE_CLOSED = "TRADE_CLOSED";

    /**
     * 支付宝未查询到订单
     */
    public static final String TRADE_NOT_EXIST = "ACQ.TRADE_NOT_EXIST";

}

 
